package com.matt.repository.base;

import com.matt.domain.news.SystemNotification;
import com.matt.foundation.query.NewsQuery;

import java.util.List;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/11/28
 * *******************************
 */
public interface SystemNotificationNativeRepository {

    List<SystemNotification> findByQuery(NewsQuery query);

    Long findCountByQuery(NewsQuery query);

    SystemNotification findTopNews();
}
